package com.koron.order.overhaul.bean.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.koron.order.overhaul.utils.DeleteFlag;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * (WOverhaulReport) 大修工单-报告表
 * @author twcao
 * @since 2021-09-29 09:49:35
 */
@Data
@ApiModel("大修工单-报告表")
public class OverhaulOrderReportBean implements Serializable, DeleteFlag {
    private static final long serialVersionUID = -56854197627300025L;

    @ApiModelProperty(value = "ID,32位随机数，主键")
    private String id;

    @ApiModelProperty(value = "大修工单表主键")
    private String overhaulId;

    @ApiModelProperty(value = "项目概述")
    private String desc;

    @ApiModelProperty(value = "创建人账号")
    private String createBy;

    @ApiModelProperty(value = "创建人姓名")
    private String createByName;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @JsonIgnore
    @ApiModelProperty(value = "删除标志,0：delete_flag=false，代表未删除 1：delete_flag = true，代表已删除",hidden = true)
    private Boolean deleteFlag;
}
